#ifndef _COMMUNICATORERROR_H_
#define _COMMUNICATORERROR_H_

#include <QString>

#include <string>
#include <exception>

using std::exception;
using std::string;

namespace Tubox {

class CommunicatorError : public exception {
public:
	CommunicatorError(string error, QString message = 0) : error(error), message(message) { }
	virtual const char* what() const throw() {
		return error.c_str();
	}
	QString getMessage() const { return message; }
	~CommunicatorError() throw() { }
private:
	string error;
	QString message;

};

}
#endif //_COMMUNICATORERROR_H_
